package com.itheima.d3_extendsfeature;

/**
 * 继承的特点
 * 1.单继承
 * 2.多层继承
 * 3.object类 祖宗类
 * 4.就近原则
 */
public class Test {
    public static void main(String[] args) {
        D d = new D();
        d.show();
    }
}





class C{

        String name = "fu的name";

}
class D extends C{
    String name = "zi的name";
    public void show(){
        String name = "局部的name";
        System.out.println(name);
        System.out.println(this.name);
        System.out.println(super.name);
    }
}

class AA extends Object{}


